/**
 * Project: uambank-webapp
 * 
 * File Created at 2011-6-29
 * $Id$
 * 
 * Copyright 2008 6677bank.com Croporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * 6677bank Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with 6677bank.com.
 */
package com.bank6677.sync.csm.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.bank6677.uambank.model.role.Role;

/**
 * 用户实体类
 * 
 * @author wangjian,guobin
 * @version User.java Jul 7, 2011 10:05:48 AM
 */
public class User implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 4800601240981515836L;
    private Integer           id;                                     //用户id(唯一)
    private String            userName;                               //登录名
    private String            userPwd;                                //登录密码
    private String            realName;                               //真实姓名
    private Integer           deptId;
    private Integer           sex;                                    //性别
    private Date              birthday;                               //出手日期
    private String            phone;                                  //固定电话
    private String            mobile;                                 //手机号码
    private String            email;                                  //email
    private Date              createTime;                             //创建时间
    private String            serviceInstitutionId;                   //所属机构id
    private String            serviceInstitutionName;                 //机构名称
    private Integer           status;                                 //状态(1正常,-1删除 ,0为禁用)
    private Integer           systemId;                               //所属系统id
    private Integer           isLogin;                                //是否登录
    private Integer           parentUserId;                           //父用户id

    private String            groupNames;                             //多个业务组名称

    
    private List<Role>        roles;//用户的角色 2012.3.16 在同步用户的时候需要用到

    
    
    /**
     * @return the roles
     */
    public List<Role> getRoles() {
        return roles;
    }

    /**
     * @param roles the roles to set
     */
    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }

    /**
     * @return the serviceInstitutionName
     */
    public String getServiceInstitutionName() {
        return serviceInstitutionName;
    }

    /**
     * @param serviceInstitutionName the serviceInstitutionName to set
     */
    public void setServiceInstitutionName(String serviceInstitutionName) {
        this.serviceInstitutionName = serviceInstitutionName;
    }

    /**
     * @return the groupNames
     */
    public String getGroupNames() {
        return groupNames;
    }

    /**
     * @param groupNames the groupNames to set
     */
    public void setGroupNames(String groupNames) {
        this.groupNames = groupNames;
    }

    /**
     * @return the deptId
     */
    public Integer getDeptId() {
        return deptId;
    }

    /**
     * @param deptId the deptId to set
     */
    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    /**
     * @return the sex
     */
    public Integer getSex() {
        return sex;
    }

    /**
     * @param sex the sex to set
     */
    public void setSex(Integer sex) {
        this.sex = sex;
    }

    /**
     * @return the status
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * @param status the status to set
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * @return the parentUserId
     */
    public Integer getParentUserId() {
        return parentUserId;
    }

    /**
     * @param parentUserId the parentUserId to set
     */
    public void setParentUserId(Integer parentUserId) {
        this.parentUserId = parentUserId;
    }

    public Integer getIsLogin() {
        return isLogin;
    }

    public void setIsLogin(Integer isLogin) {
        this.isLogin = isLogin;
    }

    public Integer getSystemId() {
        return systemId;
    }

    public void setSystemId(Integer systemId) {
        this.systemId = systemId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getServiceInstitutionId() {
        return serviceInstitutionId;
    }

    public void setServiceInstitutionId(String serviceInstitutionId) {
        this.serviceInstitutionId = serviceInstitutionId;
    }

}
